home *** CD-ROM | disk | FTP | other *** search
/ Reverse Code Engineering RCE CD +sandman 2000 / ReverseCodeEngineeringRceCdsandman2000.iso / RCE / Library / Manuels & Misc / Assembly / AOA.ZIP / CH08 / EX8_5A.ASM < prev    next >
Encoding:
Assembly Source File  |  1996-02-07  |  1.1 KB  |  59 lines

  1. ; Ex8_5a.asm
  2. ;
  3. ; Randall Hyde
  4. ; 2/7/96
  5. ; This program reads a string of symbols from the user and prints the vowels.
  6. ; It demonstrates the use of make files
  7.  
  8.  
  9.         .xlist
  10.         include     stdlib.a
  11.         includelib    stdlib.lib
  12.         .list
  13.  
  14. ; The following include file brings in the external
  15. ; definitions of the routine(s) in the Lab6x10b
  16. ; module.  In particular, it gives this module
  17. ; access to the "PrtVowels" routine found in
  18. ; Lab8_5b.asm.
  19.  
  20.         include        Ex8_5.a
  21.  
  22.  
  23. cseg        segment    para public 'code'
  24.  
  25. Main        proc
  26.  
  27.         meminit
  28.  
  29. ; Read a string from the user, print all the vowels
  30. ; present in that string, and then free up the memory
  31. ; allocated by the GETSM routine:
  32.  
  33.         print
  34.         byte    "I will find all your vowels"
  35.         byte    cr,lf
  36.         byte    "Enter a line of text: ",0
  37.  
  38.         getsm
  39.         print
  40.         byte    "Vowels on input line: ",0
  41.         PrtVowels
  42.         putcr
  43.         free
  44.  
  45. Quit:        ExitPgm
  46. Main        endp
  47.  
  48. cseg            ends
  49.  
  50. sseg        segment    para stack 'stack'
  51. stk        byte    1024 dup ("stack   ")
  52. sseg        ends
  53.  
  54. zzzzzzseg    segment    para public 'zzzzzz'
  55. LastBytes    byte    16 dup (?)
  56. zzzzzzseg    ends
  57.         end    Main
  58.